package com.bsoft.exchange.webservice;



import com.bsoft.exchange.response.ResponseEntity;
import com.bsoft.exchange.vo.UserVo;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;

@WebService(targetNamespace="http://webservice.exchange.bsoft.com")
public interface  UserService {
    @WebMethod//标注该方法为webservice暴露的方法,用于向外公布，它修饰的方法是webservice方法，去掉也没影响的，类似一个注释信息。
     public ResponseEntity<UserVo> getUser(@WebParam(name = "userId") int userId);

             @WebMethod
     @WebResult(name="String",targetNamespace="")
     public ResponseEntity<String> getUserName(@WebParam(name = "userName") String userName);

}
